package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.viewpoint.vo.ViewpointUpvoteForm;
import com.cloudbroker.bcs.platform.ltb.middle.dao.ViewpointUpvoteDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.ViewpointUpvote;
import com.cloudbroker.bcs.platform.ltb.middle.service.ViewpointUpvoteService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.TenantServiceImplBase;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by zhaosh19213 on 2016/8/11.
 */
@Service
public class ViewpointUpvoteServiceImpl extends TenantServiceImplBase<ViewpointUpvote,String>
    implements ViewpointUpvoteService{

    @Resource
    private ViewpointUpvoteDAO viewpointUpvoteDAO;

    @Override
    protected DAOBase<ViewpointUpvote, String> getDAO() {
        return viewpointUpvoteDAO;
    }

    public void cancelUpvote(ViewpointUpvote viewpointUpvote){
        viewpointUpvoteDAO.cancelUpvote(viewpointUpvote);
    }
}
